﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeTop.笔试.米可世界
{

    class Student
    {


        public static int Id = 1;
        public int age = 10;
        public static void Alter()
        {

            Id++;
            //age++;//必须设置为静态
        }
    }
  
    class Program
    {
        static void Mainmike(string[] args)
        {



            Student student = new Student();
            Student.Alter();
            Console.WriteLine(student.age);
            // student.Alter();//静态成员无法通过实例访问
        }

    }

 
}
